package com.user.UserAction;
import java.io.ByteArrayInputStream;

import org.omg.CORBA.portable.InputStream;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.user.dao.impl.UserDaoImpl;
import com.user.domain.User;
import com.user.service.impl.UserInfoServiceImpl;

@Controller
public class UserAction extends ActionSupport{
	private String format;
	private String username;
	private String password;
	private String tellnumber;
	private String token;
	private String builder_n;
	private java.io.InputStream inputStream;
	private String xmlPath;

	private User user = new User();
	public User getUser() {
		return user;
	} 

	public void setUser(User user) {
		this.user = user;
	}

	public String getXmlPath() {
		return xmlPath;
	}

	public void setXmlPath(String xmlPath) {
		this.xmlPath = xmlPath;
	}

	@Override
	public String execute() throws Exception {
		if(format.equals("saveUser")){
			
		}else if(format.equals("getUser")){
			
		}else if(format.equals("updateUser")){
			
		}else if(format.equals("token")){
			
		}
		return "success";
	}
	

	public String getBuilder_n() {
		return builder_n;
	}

	public void setBuilder_n(String builder_n) {
		this.builder_n = builder_n;
	}

	public String getFormat() {
		return format;
	}
	public void setFormat(String format) {
		this.format = format;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getTellnumber() {
		return tellnumber;
	}
	public void setTellnumber(String tellnumber) {
		this.tellnumber = tellnumber;
	}
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public java.io.InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(java.io.InputStream inputStream) {
		this.inputStream = inputStream;
	}
	
}
